Optimal. Leaf size=302 \[ \frac {8 b^2 (b c-3 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{15 d^2 f}-\frac {2 b^2 \cos (e+f x) (a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}}{5 d f}-\frac {2 b \left (30 a b c d-45 a^2 d^2-b^2 \left (8 c^2+9 d^2\right )\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{15 d^3 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 \left (45 a^2 b c d^2-15 a^3 d^3-15 a b^2 d \left (2 c^2+d^2\right )+b^3 \left (8 c^3+7 c d^2\right )\right ) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{15 d^3 f \sqrt {c+d \sin (e+f x)}} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.31, antiderivative size = 302, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 7, integrand size = 27, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.259, Rules used = {2872, 3102,
2831, 2742, 2740, 2734, 2732} \begin {gather*} -\frac {2 b \left (-45 a^2 d^2+30 a b c d-\left (b^2 \left (8 c^2+9 d^2\right )\right )\right ) \sqrt {c+d \sin (e+f x)} E\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{15 d^3 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 \left (-15 a^3 d^3+45 a^2 b c d^2-15 a b^2 d \left (2 c^2+d^2\right )+b^3 \left (8 c^3+7 c d^2\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}} F\left (\frac {1}{2} \left (e+f x-\frac {\pi }{2}\right )|\frac {2 d}{c+d}\right )}{15 d^3 f \sqrt {c+d \sin (e+f x)}}+\frac {8 b^2 (b c-3 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{15 d^2 f}-\frac {2 b^2 \cos (e+f x) (a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}}{5 d f} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 2732
Rule 2734
Rule 2740
Rule 2742
Rule 2831
Rule 2872
Rule 3102
Rubi steps
\begin {align*} \int \frac {(a+b \sin (e+f x))^3}{\sqrt {c+d \sin (e+f x)}} \, dx &=-\frac {2 b^2 \cos (e+f x) (a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}}{5 d f}+\frac {2 \int \frac {\frac {1}{2} \left (2 b^3 c+5 a^3 d+a b^2 d\right )-\frac {1}{2} b \left (2 a b c-15 a^2 d-3 b^2 d\right ) \sin (e+f x)-2 b^2 (b c-3 a d) \sin ^2(e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{5 d}\\ &=\frac {8 b^2 (b c-3 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{15 d^2 f}-\frac {2 b^2 \cos (e+f x) (a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}}{5 d f}+\frac {4 \int \frac {\frac {1}{4} d \left (2 b^3 c+15 a^3 d+15 a b^2 d\right )-\frac {1}{4} b \left (30 a b c d-45 a^2 d^2-b^2 \left (8 c^2+9 d^2\right )\right ) \sin (e+f x)}{\sqrt {c+d \sin (e+f x)}} \, dx}{15 d^2}\\ &=\frac {8 b^2 (b c-3 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{15 d^2 f}-\frac {2 b^2 \cos (e+f x) (a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}}{5 d f}-\frac {\left (b \left (30 a b c d-45 a^2 d^2-b^2 \left (8 c^2+9 d^2\right )\right )\right ) \int \sqrt {c+d \sin (e+f x)} \, dx}{15 d^3}-\frac {\left (45 a^2 b c d^2-15 a^3 d^3-15 a b^2 d \left (2 c^2+d^2\right )+b^3 \left (8 c^3+7 c d^2\right )\right ) \int \frac {1}{\sqrt {c+d \sin (e+f x)}} \, dx}{15 d^3}\\ &=\frac {8 b^2 (b c-3 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{15 d^2 f}-\frac {2 b^2 \cos (e+f x) (a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}}{5 d f}-\frac {\left (b \left (30 a b c d-45 a^2 d^2-b^2 \left (8 c^2+9 d^2\right )\right ) \sqrt {c+d \sin (e+f x)}\right ) \int \sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}} \, dx}{15 d^3 \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {\left (\left (45 a^2 b c d^2-15 a^3 d^3-15 a b^2 d \left (2 c^2+d^2\right )+b^3 \left (8 c^3+7 c d^2\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}\right ) \int \frac {1}{\sqrt {\frac {c}{c+d}+\frac {d \sin (e+f x)}{c+d}}} \, dx}{15 d^3 \sqrt {c+d \sin (e+f x)}}\\ &=\frac {8 b^2 (b c-3 a d) \cos (e+f x) \sqrt {c+d \sin (e+f x)}}{15 d^2 f}-\frac {2 b^2 \cos (e+f x) (a+b \sin (e+f x)) \sqrt {c+d \sin (e+f x)}}{5 d f}-\frac {2 b \left (30 a b c d-45 a^2 d^2-b^2 \left (8 c^2+9 d^2\right )\right ) E\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {c+d \sin (e+f x)}}{15 d^3 f \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}-\frac {2 \left (45 a^2 b c d^2-15 a^3 d^3-15 a b^2 d \left (2 c^2+d^2\right )+b^3 \left (8 c^3+7 c d^2\right )\right ) F\left (\frac {1}{2} \left (e-\frac {\pi }{2}+f x\right )|\frac {2 d}{c+d}\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}}{15 d^3 f \sqrt {c+d \sin (e+f x)}}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 1.32, size = 219, normalized size = 0.73 \begin {gather*} \frac {-2 \left (d^2 \left (2 b^3 c+15 a^3 d+15 a b^2 d\right ) F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )+b \left (-30 a b c d+45 a^2 d^2+b^2 \left (8 c^2+9 d^2\right )\right ) \left ((c+d) E\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )-c F\left (\frac {1}{4} (-2 e+\pi -2 f x)|\frac {2 d}{c+d}\right )\right )\right ) \sqrt {\frac {c+d \sin (e+f x)}{c+d}}-2 b^2 d \cos (e+f x) (c+d \sin (e+f x)) (-4 b c+15 a d+3 b d \sin (e+f x))}{15 d^3 f \sqrt {c+d \sin (e+f x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(1084\) vs.
\(2(348)=696\).
time = 18.39, size = 1085, normalized size = 3.59
method | result | size |
default | \(\text {Expression too large to display}\) | \(1085\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [C] Result contains higher order function than in optimal. Order 9 vs. order
4.
time = 0.18, size = 605, normalized size = 2.00 \begin {gather*} -\frac {\sqrt {2} {\left (16 \, b^{3} c^{3} - 60 \, a b^{2} c^{2} d + 6 \, {\left (15 \, a^{2} b + 2 \, b^{3}\right )} c d^{2} - 45 \, {\left (a^{3} + a b^{2}\right )} d^{3}\right )} \sqrt {i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right ) + \sqrt {2} {\left (16 \, b^{3} c^{3} - 60 \, a b^{2} c^{2} d + 6 \, {\left (15 \, a^{2} b + 2 \, b^{3}\right )} c d^{2} - 45 \, {\left (a^{3} + a b^{2}\right )} d^{3}\right )} \sqrt {-i \, d} {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right ) + 3 \, \sqrt {2} {\left (8 i \, b^{3} c^{2} d - 30 i \, a b^{2} c d^{2} + 9 i \, {\left (5 \, a^{2} b + b^{3}\right )} d^{3}\right )} \sqrt {i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (8 i \, c^{3} - 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) - 3 i \, d \sin \left (f x + e\right ) - 2 i \, c}{3 \, d}\right )\right ) + 3 \, \sqrt {2} {\left (-8 i \, b^{3} c^{2} d + 30 i \, a b^{2} c d^{2} - 9 i \, {\left (5 \, a^{2} b + b^{3}\right )} d^{3}\right )} \sqrt {-i \, d} {\rm weierstrassZeta}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, {\rm weierstrassPInverse}\left (-\frac {4 \, {\left (4 \, c^{2} - 3 \, d^{2}\right )}}{3 \, d^{2}}, -\frac {8 \, {\left (-8 i \, c^{3} + 9 i \, c d^{2}\right )}}{27 \, d^{3}}, \frac {3 \, d \cos \left (f x + e\right ) + 3 i \, d \sin \left (f x + e\right ) + 2 i \, c}{3 \, d}\right )\right ) + 6 \, {\left (3 \, b^{3} d^{3} \cos \left (f x + e\right ) \sin \left (f x + e\right ) - {\left (4 \, b^{3} c d^{2} - 15 \, a b^{2} d^{3}\right )} \cos \left (f x + e\right )\right )} \sqrt {d \sin \left (f x + e\right ) + c}}{45 \, d^{4} f} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\left (a + b \sin {\left (e + f x \right )}\right )^{3}}{\sqrt {c + d \sin {\left (e + f x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {{\left (a+b\,\sin \left (e+f\,x\right )\right )}^3}{\sqrt {c+d\,\sin \left (e+f\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________